/**
 * title 菜单标题
 * name 路由名称
 * path 路由地址，不填写则不初始化路由
 * component 路由组件地址，不填写则不初始化路由
 * redirect 路由重定向
 * hideInMenu 是否隐藏菜单 默认展示 true
 * showName 配合hideInMenu使用 隐藏后菜单栏展示对应的active
 * child 子路由
 * hasGroup 是否是分组
 * pname 旧saas跳转链接额外参数
 */
let Main = () => import('@/components/main')
export const menu = [
  {
    title: '首页',
    name: 'home',
    path: '/',
    icon: 'home',
    component: Main,
    secondMenuTitle: '首页',
    child: [
      {
        title: '首页',
        name: 'index',
        path: '/',
        component: () => import('@/view/home/index.vue')
      }
    ]
  },
  {
    title: '登录',
    name: 'login',
    path: '/login',
    component: () => import('@/view/login/index.vue'),
    redirect: '/login/signin',
    hideInMenu: true,
    child: [
      {
        title: '登录',
        name: 'signin',
        path: '/login/signin',
        component: () => import('@/view/login/signin.vue')
      },
      {
        title: '注册',
        name: 'signup',
        path: '/login/signup',
        component: () => import('@/view/login/signup.vue')
      }
    ]
  },
  {
    title: '小店设置',
    name: 'company',
    path: '/company',
    icon: 'user',
    redirect: '/company/shops',
    component: Main,
    secondMenuTitle: '小店设置',
    child: [
      {
        title: '小店设置',
        hasGroup: true,
        child: [
          {
            title: '行业管理',
            name: 'industry',
            path: '/industry',
            keepAlive: true,
            component: () =>
              import('@/view/setting/industry.vue')
          },
          {
            title: '小店管理',
            name: 'shops',
            path: '/company/shops',
            keepAlive: false,
            component: () =>
              import('@/view/shop/index.vue')
          },
          {
            title: '企业店管理',
            name: 'settlemententity',
            path: '/company/settlemententity',
            keepAlive: true,
            component: () =>
              import('@/view/shop/settlemententity.vue')
          },


          // {
          //   title: '结算主体',
          //   name: 'shops',
          //   path: '/company/shops',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/shop/index.vue')
          // },

          {
            title: '小店详情',
            name: 'shoplistDetail',
            path: 'shoplistDetail',
            hideInMenu: true,
            component: () =>
              import('@/view/management/shoplistDetail/index.vue')
          },
          {
            title: '小店板块管理',
            name: 'shopcate',
            path: '/company/shopcate',
            keepAlive: true,
            component: () =>
              import('@/view/shop/shopcate.vue')
          },

          {
            title: '小店分类管理',
            name: 'shopcategory',
            path: '/company/shopcategory',
            keepAlive: true,
            component: () =>
              import('@/view/shop/shopcategory.vue')
          },
          {
            title: '小店移除记录',
            name: 'shopRemoverec',
            path: '/company/shopRemoverec',
            keepAlive: true,
            component: () =>
              import('@/view/management/shopRemoverec.vue')
          },
          {
            title: '小店会员管理',
            name: 'shopMember',
            path: '/management/shopMember',
            keepAlive: true,
            component: () =>
              import('@/view/management/shopMember.vue')
          },
          {
            title: '小店会员详情',
            name: 'shopMemberdetailRouter',
            path: '/management/shopMemberdetailRouter',
            hideInMenu: true,
            component: () => import('@/view/management/shopMemberdetailRouter.vue')
          },
          {
            title: '小店操作日志',
            name: 'shopLog',
            path: '/management/shopLog',
            keepAlive: true,
            component: () =>
              import('@/view/management/shopLog/index.vue')
          },
          {
            title: '收款码管理',
            name: 'codeManagement',
            path: '/management/codeManagement',
            keepAlive: true,
            component: () => import('@/view/management/codeManagement/codeManagement.vue')
          },
          // {
          //   title: '店铺类型',
          //   name: 'shoptype',
          //   path: '/management/shopcate',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/management/shopcate.vue')
          // },

          {
            title: '创建小店',
            name: 'shop_create',
            path: '/company/shop_create',
            keepAlive: false,
            hideInMenu: true,
            component: () =>
              import('@/view/shop/create.vue')
          },
          {
            title: '编辑小店',
            name: 'shop_edit',
            path: '/company/shop_edit',
            keepAlive: false,
            hideInMenu: true,
            component: () =>
              import('@/view/shop/edit.vue')
          },
        ]
      },
      {
        title: '小店活动',
        hasGroup: true,
        child: [

          {
            title: '活动管理',
            name: 'gift',
            path: '/company/gift',
            keepAlive: false,
            component: () =>
              import('@/view/shop/gift_index.vue')
          },

          {
            title: '活动详情',
            name: 'shoplistDetail',
            path: 'shoplistDetail',
            hideInMenu: true,
            component: () =>
              import('@/view/management/shoplistDetail/index.vue')
          }
        ]
      },
      {
        title: '入驻管理',
        hasGroup: true,
        child: [
          {
            title: '小店入驻审核',
            name: 'residenceaudit',
            path: '/management/residenceaudit',
            keepAlive: true,
            component: () =>
              import('@/view/management/residenceaudit.vue')
          },

          {
            title: '小店加盟订单',
            name: 'shopJoinOrder',
            path: '/management/shopJoinOrder',
            component: () =>
              import('@/view/management/shopJoinOrder.vue')
          },
          {
            title: '小店入驻详情',
            name: 'residenceInformation',
            path: '/management/residenceInformation',
            hideInMenu: true,
            component: () =>
              import('@/view/management/residenceInformation.vue')
          }
          // {
          //   title: '入驻审核',
          //   name: 'shops',
          //   path: '/company/shops',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/shop/index.vue')
          // },
          // {
          //   title: '加盟订单',
          //   name: 'shops',
          //   path: '/company/shops',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/shop/index.vue')
          // }
        ]
      },

    ]
  },
  {
    title: '用户',
    name: 'member',
    path: '/member',
    icon: 'user',
    redirect: '/members',
    component: Main,
    secondMenuTitle: '用户管理',
    child: [
      {
        title: '用户管理',
        hasGroup: true,
        child: [
          {
            title: '用户管理',
            name: 'members',
            path: '/members',
            keepAlive: true,
            component: () =>
              import('@/view/member/list.vue')
          },
          {
            title: '资金流水',
            name: 'moneys',
            path: '/moneys',
            keepAlive: true,
            component: () =>
              import('@/view/member/money_list.vue')
          },
          // {
          //   title: '鲸币记录',
          //   name: 'redpackets',
          //   path: '/redpackets',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/member/redpacket_list.vue')
          // },
          // {
          //   title: '福利记录',
          //   name: 'fulis',
          //   path: '/fulis',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/member/fuli_list.vue')
          // },
        ]
      }
    ]
  },
  {
    title: '商品',
    name: 'goods',
    path: '/goods',
    icon: 'shopping-cart',
    component: Main,
    secondMenuTitle: '商品管理',
    redirect: '/goods_list',
    child: [
      {
        title: '商品库',
        hasGroup: true,
        child: [
          {
            title: '自营商品',
            name: 'goods_list',
            path: '/goods_list',
            component: () =>
              import('@/view/goods/list.vue')
          },
          {
            title: '分销商品',
            name: 'retail_goods_list',
            path: '/retail_goods_list',
            component: () =>
              import('@/view/retail/list.vue')
          },
          {
            title: '专场管理',
            name: 'goods_page_list',
            path: '/goods_page_list',
            component: () =>
              import('@/view/goods/page_list.vue')
          },
          {
            title: '产品套装',
            name: 'package',
            path: '/package',
            component: () =>
              import('@/view/goods/package.vue')
          },
          {
            title: '发布套装',
            name: 'goods_package_create',
            path: '/goods_package_create',
            hideInMenu: true,
            component: () =>
              import('@/view/goods/package_create.vue')
          },
          {
            title: '资格套装',
            name: 'package_list',
            path: '/package_list',
            component: () =>
              import('@/view/goods/package_list.vue')
          },
          {
            title: '专场关联商品',
            name: 'goods_page_relate_list',
            path: '/goods_page_relate_list',
            hideInMenu: true,
            component: () =>
              import('@/view/goods/page_relate_list.vue')
          },
          {
            title: '专场关联商品',
            name: 'retail_goods_page_relate_list',
            path: '/retail_goods_page_relate_list',
            hideInMenu: true,
            component: () =>
              import('@/view/retail/page_relate_list.vue')
          },
          {
            title: '选品入库',
            name: 'goods_create',
            path: '/goods_create',
            hideInMenu: true,
            component: () =>
              import('@/view/goods/create.vue')
          },
          {
            title: '商品详情',
            name: 'goods_detail',
            path: '/goods_detail',
            hideInMenu: true,
            component: () =>
              import('@/view/goods/detail.vue')
          },
          {
            title: '编辑商品',
            name: 'goods_edit',
            path: '/goods_edit',
            hideInMenu: true,
            component: () =>
              import('@/view/goods/edit.vue')
          },
          {
            title: '发布商品',
            name: 'goods_card_create',
            path: '/goods_card_create',
            hideInMenu: true,
            component: () =>
              import('@/view/goods/create.vue')
          },
        ],

      },
      {
        title: '选品入库',
        hasGroup: true,
        child: [
          {
            title: '350云仓',
            name: 'yc_create',
            path: '/yc_create',
            component: () =>
              import('@/view/yc/create.vue')
          },
          {
            title: '淘宝',
            name: 'taoke_create',
            path: '/taoke_create',
            component: () =>
              import('@/view/taoke/create.vue')
          },
          {
            title: '京东',
            name: 'jd_create',
            path: '/jd_create',
            component: () =>
              import('@/view/jd/create.vue')
          },
          {
            title: '拼多多',
            name: 'pdd_create',
            path: '/pdd_create',
            component: () =>
              import('@/view/pdd/create.vue')
          },
          // {
          //   title: '唯品会',
          //   name: 'wph_create',
          //   path: '/wph_create',
          //   component: () =>
          //     import('@/view/wph/create.vue')
          // },
        ]
      },
      {
        title: '分销品牌',
        hasGroup: true,
        child: [
          {
            title: '品牌分类',
            name: 'retail_brand_category',
            path: '/retail_brand_category',
            component: () =>
              import('@/view/retail/brand_category.vue')
          },
          {
            title: '品牌库',
            name: 'retail_brand',
            path: '/retail_brand',
            component: () =>
              import('@/view/retail/brand.vue')
          },
          {
            title: '品牌橱窗',
            name: 'brand_ad',
            path: '/brand_ad',
            component: () =>
              import('@/view/retail/brand_ad.vue')
          },
          {
            title: '品牌推荐',
            name: 'brand_commend',
            path: '/brand_commend',
            component: () =>
              import('@/view/retail/brand_commend.vue')
          },
        ]
      },
      {
        title: '自提点',
        hasGroup: true,
        child: [
          {
            title: '自提点',
            name: 'address',
            path: '/goods/address',
            component: () =>
              import('@/view/goods/address.vue')
          },
          // {
          //   title: '淘宝',
          //   name: 'taoke_create',
          //   path: '/taoke_create',
          //   component: () =>
          //     import('@/view/taoke/create.vue')
          // },
          // {
          //   title: '京东',
          //   name: 'jd_create',
          //   path: '/jd_create',
          //   component: () =>
          //     import('@/view/jd/create.vue')
          // },
          // {
          //   title: '拼多多',
          //   name: 'pdd_create',
          //   path: '/pdd_create',
          //   component: () =>
          //     import('@/view/pdd/create.vue')
          // },
          // {
          //   title: '唯品会',
          //   name: 'wph_create',
          //   path: '/wph_create',
          //   component: () =>
          //     import('@/view/wph/create.vue')
          // },
        ]
      },
    ]
  },
  {
    title: '卡券',
    name: 'card',
    path: '/card',
    icon: 'credit-card',
    redirect: '/card',
    component: Main,
    secondMenuTitle: '卡券',
    child: [

      // {
      //   title: '卡商品管理',
      //   hasGroup: true,
      //   child: [
      //     {
      //       title: '鲸喜卡管理',
      //       name: 'membercard',
      //       path: '/membercard',
      //       keepAlive: false,
      //       component: () =>
      //         import('@/view/goods/card.vue')
      //     },
      //     {
      //       title: '福利卡管理',
      //       name: 'partnercard',
      //       path: '/partnercard',
      //       keepAlive: false,
      //       component: () =>
      //         import('@/view/goods/partnercard.vue')
      //     },
      //     {
      //       title: '折扣管理',
      //       name: 'goods_discount',
      //       path: '/goods_discount',
      //       keepAlive: false,
      //       component: () =>
      //         import('@/view/goods/discount.vue')
      //     },
      //     {
      //       title: '发布商品',
      //       name: 'goods_card_create',
      //       path: '/goods_card_create',
      //       hideInMenu: true,
      //       component: () =>
      //         import('@/view/goods/card_create.vue')
      //     },
      //   ]
      // },
      // {
      //   title: '制卡管理',
      //   hasGroup: true,
      //   child: [
      //     {
      //       title: '实体卡管理',
      //       name: 'card',
      //       path: '/card',
      //       keepAlive: true,
      //       component: () =>
      //         import('@/view/card/index.vue')
      //     },
      //     {
      //       title: '电子卡管理',
      //       name: 'card_online',
      //       path: '/card_online',
      //       keepAlive: true,
      //       component: () =>
      //         import('@/view/card/online.vue')
      //     },
      //   ]
      // },
      {
        title: '红包管理',
        hasGroup: true,
        child: [
          {
            title: '红包充值设置',
            name: 'redpacketPull',
            path: '/others/redpacketPull',
            keepAlive: true,
            component: () => import('@/view/others/redpacketPull.vue')
          },
          {
            title: '红包充值记录',
            name: 'redpacketRechargeList',
            path: '/others/redpacketRechargeList',
            keepAlive: true,
            component: () => import('@/view/others/redpacketRechargeList.vue')
          },

          {
            title: '实体卡管理',
            name: 'card',
            path: '/card',
            keepAlive: true,
            component: () =>
              import('@/view/card/index.vue')
          },
          {
            title: '店铺卡管理',
            name: 'shopcard',
            path: '/shopcard',
            keepAlive: true,
            component: () =>
              import('@/view/card/shopcard.vue')
          },
          {
            title: '发送红包记录',
            name: 'redPacketsf',
            path: '/others/redPacketsf',

            component: () => import('@/view/others/redPacketsf.vue')
          },
          {
            title: '领取红包记录',
            name: 'redPacketss',
            path: '/others/redPacketss',

            component: () => import('@/view/others/redPacketss.vue')
          },
          {
            title: '红包流水记录',
            name: 'isRedPacketsOrder',
            path: '/others/isRedPacketsOrder',

            component: () => import('@/view/others/isRedPacketsOrder.vue')
          }, {
            title: '根据红包 ID 查询领取记录',
            name: 'goods_card_create',
            path: '/goods_card_create',
            hideInMenu: true,
            component: () =>
              import('@/view/goods/create.vue')
          },


        ]
      },
    ]
  },
  {
    title: '订单',
    name: 'orders',
    path: '/orders',
    icon: 'list',
    component: Main,
    secondMenuTitle: '订单管理',
    redirect: '/order_all',
    child: [
      {
        title: '自营商品订单',
        hasGroup: true,
        child: [
          {
            title: '全部订单',
            name: 'order_all',
            path: '/order_all',
            component: () =>
              import('@/view/order/all.vue')
          },
          {
            title: '待发货',
            name: 'order_send',
            path: '/order_send',
            component: () =>
              import('@/view/order/send.vue')
          },
          {
            title: '待收货',
            name: 'order_receive',
            path: '/order_receive',
            component: () =>
              import('@/view/order/receive.vue')
          },
          {
            title: '已完成',
            name: 'order_complete',
            path: '/order_complete',
            component: () =>
              import('@/view/order/complete.vue')
          },
          {
            title: '已关闭',
            name: 'order_close',
            path: '/order_close',
            component: () =>
              import('@/view/order/close.vue')
          },
          {
            title: '维权订单',
            name: 'order_feedback',
            path: '/order_feedback',
            component: () =>
              import('@/view/order/feedback.vue')
          },
          {
            title: '订单详情',
            name: 'order_detail',
            path: '/order_detail',
            hideInMenu: true,
            component: () =>
              import('@/view/order/detail.vue')
          },
        ]
      },
      {
        title: '分销商品订单',
        hasGroup: true,
        child: [
          {
            title: '分销订单',
            name: 'retail_order',
            path: '/retail_order',
            component: () =>
              import('@/view/retail/orderList.vue')
          },
        ]
      },
      {
        title: '商品核销',
        hasGroup: true,
        child: [

          {
            title: '待支付',
            name: 'hxsend',
            path: '/order/hxsend',
            component: () =>
              import('@/view/order/hxsend.vue')
          },
          {
            title: '待审核',
            name: 'hxreceive',
            path: '/order/hxreceive',
            component: () =>
              import('@/view/order/hxreceive.vue')
          },
          {
            title: '已完成',
            name: 'hxcomplete',
            path: '/order/hxcomplete',
            component: () =>
              import('@/view/order/hxcomplete.vue')
          },
          {
            title: '已关闭',
            name: 'hxclose',
            path: '/order/hxclose',
            component: () =>
              import('@/view/order/hxclose.vue')
          },
          {
            title: '订单详情',
            name: 'order_detail',
            path: '/order_detail',
            hideInMenu: true,
            component: () =>
              import('@/view/order/detail.vue')
          },
        ]
      },


      {
        title: '提现订单',
        hasGroup: true,
        child: [
          {
            title: '提现申请',
            name: 'withdrawList',
            path: '/member/withdrawList',
            keepAlive: true,
            component: () =>
              import('@/view/member/withdrawList.vue')
          },
        ]
      },

      // {
      //   title: '服务管理',
      //   hasGroup: true,
      //   child: [
      //     {
      //       title: '服务项目',
      //       name: 'project',
      //       path: '/project',
      //       keepAlive: true,
      //       component: () =>
      //         import('@/view/shop/project.vue')
      //     },
      //     {
      //       title: '服务记录',
      //       name: 'seller_orders',
      //       path: '/seller/orders',
      //       keepAlive: true,
      //       component: () =>
      //         import('@/view/shop/order_list.vue')
      //     },
      //     {
      //       title: '添加订单',
      //       name: 'seller_order_create',
      //       path: '/seller/order_create',
      //       keepAlive: true,
      //       hideInMenu: true,
      //       component: () =>
      //         import('@/view/shop/order_create.vue')
      //     },
      //   ]
      // }
    ]
  },
  // {
  //   title: '财务',
  //   name: 'retail_order',
  //   path: '/retail_order',
  //   icon: 'book',
  //   component: Main,
  //   secondMenuTitle: '财务',
  //   redirect: '/retail_order',
  //   child: [
  //     {
  //       title: '订单结算',
  //       hasGroup: true,
  //       child: [
  //         {
  //           title: '分销订单记录',
  //           name: 'retail_order',
  //           path: '/retail_order',
  //           component: () =>
  //           import('@/view/retail/orderList.vue')
  //         },
  //       ]
  //     },
  //   ]
  // },
  // {
  //   title: '统计',
  //   name: 'report',
  //   path: '/report',
  //   icon: 'chart-pie',
  //   component: Main,
  //   secondMenuTitle: '数据统计',
  //   redirect: '/report_summary',
  //   child: [
  //     {
  //       title: '数据统计',
  //       hasGroup: true,
  //       child: [
  //         {
  //           title: '基础统计',
  //           name: 'report_summary',
  //           path: '/report_summary',
  //           component: () =>
  //           import('@/view/report/summary.vue')
  //         },
  //       ]
  //     }

  //   ]
  // },
  {
    title: '营销',
    name: 'market',
    path: '/task',
    icon: 'cloud',
    redirect: '/task',
    component: Main,
    secondMenuTitle: '营销',
    child: [
      {
        title: '优惠券管理',
        hasGroup: true,
        child: [
          // {
          //   title: '满减券列表',
          //   name: 'avoucherslist',
          //   path: '/operate/voucherslist',
          //   keepAlive: true,
          //   component: () => import('@/view/operate/voucherslist.vue')
          // },

          // {
          //   title: '现金券列表',
          //   name: 'cashlist',
          //   path: '/operate/cashlist',
          //   keepAlive: true,
          //   component: () => import('@/view/operate/cashlist.vue')
          // },
          // {
          //   title: '购买记录',
          //   name: 'cashbuylist',
          //   path: '/operate/cashbuylist',
          //   hideInMenu: true,
          //   component: () => import('@/view/operate/cashbuylist.vue')
          // },
          {
            title: '优惠券列表',
            name: 'goods_card',
            path: '/goods_card',
            keepAlive: false,
            component: () =>
              import('@/view/goods/discountCouponList.vue')
          },
          // {
          //   title: '领取记录',
          //   name: 'vouchersgetterlists',
          //   path: '/goods/vouchersgetterlist',
          //   hideInMenu: false,
          //   keepAlive: false,
          //   component: () =>
          //     import('@/view/goods/vouchersgetterlist.vue')
          // },
          {
            title: '关联商品',
            name: 'relevanceShoplist',
            path: '/goods/relevanceShoplist',
            hideInMenu: true,
            keepAlive: false,
            component: () =>
              import('@/view/goods/relevanceShoplist.vue')
          },

        ]
      },
      {
        title: '任务管理',
        hasGroup: true,
        child: [
          {
            title: '任务管理',
            name: 'task',
            path: '/task',
            keepAlive: true,
            component: () =>
              import('@/view/goods/task.vue')
          },
          {
            title: '任务活动',
            name: 'task_activity',
            path: '/task_activity',
            keepAlive: true,
            component: () =>
              import('@/view/goods/task_activity.vue')
          },
        ]
      }
    ]
  },
  {
    title: '设置',
    name: 'config',
    path: '/config',
    icon: 'cog',
    component: Main,
    secondMenuTitle: '参数设置',
    redirect: '/config',
    child: [
      {
        title: '基础设置',
        hasGroup: true,
        child: [
          {
            title: '常规设置',
            name: 'config',
            path: '/config',
            keepAlive: true,
            component: () =>
              import('@/view/setting/config.vue')
          },
          {
            title: '佣金规则',
            name: 'sale_rule',
            path: '/sale_rule',
            keepAlive: true,
            component: () =>
              import('@/view/member/sale_rule.vue')
          },

          // {
          //   title: '制卡优惠',
          //   name: 'sale_rule',
          //   path: '/sale_rule',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/member/sale_rule.vue')
          // },
          // {
          //   title: '线下付款送红包',
          //   name: 'sale_rule',
          //   path: '/sale_rule',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/member/sale_rule.vue')
          // },
          {
            title: '替换词管理',
            name: 'common_word',
            path: '/common_word',
            keepAlive: true,
            component: () =>
              import('@/view/setting/common_word.vue')
          },
          {
            title: '广告管理',
            name: 'ad',
            path: '/ad',
            keepAlive: true,
            component: () =>
              import('@/view/ad/index.vue')
          },
          {
            title: '运费模板',
            name: 'freight_template',
            path: '/freight_template',
            keepAlive: true,
            component: () =>
              import('@/view/setting/freight_template.vue')
          },
          {
            title: 'App菜单',
            name: 'app_menu',
            path: '/app_menus',
            keepAlive: true,
            component: () =>
              import('@/view/setting/app_menu.vue')
          },
          // {
          //   title: '充值套餐',
          //   name: 'recharge_package',
          //   path: '/recharge_package',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/setting/recharge.vue')
          // },
          // {
          //   title: '行业管理',
          //   name: 'industries',
          //   path: '/industries',
          //   keepAlive: true,
          //   component: () =>
          //   import('@/view/setting/industry.vue')
          // },
          // {
          //   title: '行业分类管理',
          //   name: 'industry_categories',
          //   path: '/industry_categories',
          //   keepAlive: true,
          //   component: () =>
          //   import('@/view/setting/industry_category.vue')
          // },
          // {
          //   title: '品牌管理',
          //   name: 'industry_brands',
          //   path: '/industry_brands',
          //   keepAlive: true,
          //   component: () =>
          //   import('@/view/setting/industry_brand.vue')
          // },
          // {
          //   title: '物流公司管理',
          //   name: 'logistics',
          //   path: '/logistics',
          //   keepAlive: true,
          //   component: () =>
          //   import('@/view/setting/logistics.vue')
          // },
          {
            title: '修改密码',
            name: 'modify_password',
            path: '/modify_password',
            keepAlive: true,
            hideInMenu: true,
            component: () =>
              import('@/view/setting/modify_password.vue')
          },
          {
            title: '修改个人资料',
            name: 'modify_info',
            path: '/modify_info',
            keepAlive: true,
            hideInMenu: true,
            component: () =>
              import('@/view/setting/modify_info.vue')
          },
          // {
          //   title: 'SKU管理',
          //   name: 'category_skus',
          //   path: '/category_skus',
          //   keepAlive: true,
          //   component: () =>
          //   import('@/view/setting/category_sku.vue')
          // },
        ]
      },
      {
        title: '商品分类',
        hasGroup: true,
        child: [
          {
            title: '自营商品',
            name: 'product_category',
            path: '/product_categorys',
            keepAlive: true,
            component: () =>
              import('@/view/setting/product_category.vue')
          },
          {
            title: '分销商品',
            name: 'retail_product_category',
            path: '/retail_product_categorys',
            keepAlive: true,
            component: () =>
              import('@/view/setting/retail_product_category.vue')
          },
        ]
      },
      {
        title: '帮助中心',
        hasGroup: true,
        child: [
          {
            title: '分类管理',
            name: 'qa_cat',
            path: '/qa_cat',
            keepAlive: true,
            component: () =>
              import('@/view/setting/qa_cat.vue')
          },
          {
            title: '问题管理',
            name: 'qa',
            path: '/qa',
            keepAlive: true,
            component: () =>
              import('@/view/setting/qa.vue')
          },
          {
            title: '商学院分类',
            name: 'video_cate',
            path: '/video_cate',
            keepAlive: false,

            component: () =>
              import('@/view/setting/video_cate.vue')
          },
          {
            title: '商学院',
            name: 'video',
            path: '/setting/video',
            keepAlive: true,
            component: () =>
              import('@/view/setting/video.vue')
          },
          {
            title: '商学院',
            name: 'video_create',
            path: '/setting/video_create',
            keepAlive: false,
            hideInMenu: true,
            component: () =>
              import('@/view/setting/video_create.vue')
          },
          {
            title: '查看二维码',
            name: 'qr',
            path: '/qr',
            keepAlive: false,
            component: () =>
              import('@/view/setting/qr.vue'),
            hideInMenu: true,
          },
        ]
      }
    ]
  },
  {
    title: '系统',
    name: 'admin',
    path: '/admins',
    icon: 'cog',
    component: Main,
    secondMenuTitle: '管理员设置',
    redirect: '/admins',
    child: [
      {
        title: '菜单管理',
        hasGroup: true,
        child: [
          {
            title: '菜单管理',
            name: 'menu',
            path: '/menu',
            keepAlive: true,
            component: () =>
              import('@/view/system/menu.vue')
          }
        ]
      },
      {
        title: '员工管理',
        hasGroup: true,
        child: [
          {
            title: '员工角色管理',
            name: 'staffrole',
            path: '/system/staffrole',
            component: () => import('@/view/system/staffrole.vue')
          },
          {
            title: '小店员工管理',
            name: 'shopstaff',
            path: '/system/shopstaff',
            component: () => import('@/view/system/shopstaff.vue')
          }
          // {
          //   title: '角色管理',
          //   name: 'shops',
          //   path: '/company/shops',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/shop/index.vue')
          // },
          // {
          //   title: '员工管理',
          //   name: 'shops',
          //   path: '/company/shops',
          //   keepAlive: true,
          //   component: () =>
          //     import('@/view/shop/index.vue')
          // }
        ]
      },
      {
        title: '管理员设置',
        hasGroup: true,
        child: [
          {
            title: '管理员管理',
            name: 'admins',
            path: '/admins',
            keepAlive: true,
            component: () =>
              import('@/view/system/admin.vue')
          },
          {
            title: '角色管理',
            name: 'role',
            path: '/role',
            keepAlive: true,
            component: () =>
              import('@/view/system/role.vue')
          }
        ]
      }

    ]
  },

  {
    title: '合伙人',
    name: 'ISP',
    path: '/ISP',
    icon: 'cog',
    component: Main,
    secondMenuTitle: '合伙人管理',
    redirect: '/ISP/ispAreaPartnerList',
    child: [
      {
        title: '合伙人管理',
        hasGroup: true,
        child: [
          {
            title: '代理区域管理',
            name: 'ispAreamanagent',
            path: '/ISP/ispAreamanagent',
            component: () => import('@/view/ISP/ispAreamanagent.vue')
          },
          {
            title: '服务订单列表',
            name: 'isServiceOrder',
            path: '/ISP/isServiceOrder',
            hideInMenu: true,
            component: () => import('@/view/ISP/isServiceOrder.vue')
          },
          {
            title: '红包记录',
            name: 'isRedPacketsOrder',
            path: '/ISP/isRedPacketsOrder',
            hideInMenu: true,
            component: () => import('@/view/ISP/isRedPacketsOrder.vue')
          },
          {
            title: '红包兑换订单列表',
            name: 'isAreaRedBagmanagment',
            path: '/ISP/isAreaRedBagmanagment',
            hideInMenu: true,
            component: () => import('@/view/ISP/isAreaRedBagmanagment.vue')
          },
          {
            title: '合伙人列表',
            name: 'ispAreaPartnerList',
            path: '/ISP/ispAreaPartnerList',
            component: () => import('@/view/ISP/ispAreaPartnerList.vue')
          },
          {
            title: '合伙人小店',
            name: 'ispPartnerShop',
            path: '/ISP/ispPartnerShop',
            hideInMenu: true,
            component: () =>
              import('@/view/ISP/ispPartnerShop.vue')
          },
          {
            title: '合伙人编辑',
            name: 'ispAreaPartnerEditdetail',
            path: '/ISP/ispAreaPartnerEditdetail',
            hideInMenu: true,
            component: () => import('@/view/ISP/ispAreaPartnerEditdetail.vue')
          },
          {
            title: '合伙人子账号',
            name: 'ispAreaChildrenAccount',
            path: '/ISP/ispAreaChildrenAccount',
            hideInMenu: true,
            component: () => import('@/view/ISP/ispAreaChildrenAccount.vue')
          },

          {
            title: '合伙人直邀相关',
            name: 'ispAreaDetailFanshopPar',
            path: '/ISP/ispAreaDetailFanshopPar',
            hideInMenu: true,
            component: () => import('@/view/ISP/ispAreaDetailFanshopPar.vue')
          },
          {
            title: '省级区域详情',
            name: 'ispProvinceDetail',
            path: '/ISP/ispProvinceDetail',
            hideInMenu: true,
            component: () => import('@/view/ISP/ispProvinceDetail.vue')
          },
          {
            title: '区域详情',
            name: 'ispAreaDetail',
            path: '/ISP/ispAreaDetail',
            hideInMenu: true,
            component: () => import('@/view/ISP/ispAreaDetail.vue')
          },
          {
            title: '区域详情',
            name: 'ispAreaDetailInfo',
            path: '/ISP/ispAreaDetailInfo',
            hideInMenu: true,
            component: () => import('@/view/ISP/ispAreaDetailInfo.vue')
          },
          // {
          //   title: '授权可查询区域用户',
          //   name: 'inquireAreaUser',
          //   path: 'inquireAreaUser',
          //   component: () => import('@/view/ISP/inquireAreaUser.vue')
          // },

        ]
      },
    ]
  },
  {
    title: '财务',
    name: 'finance',
    path: '/finance',
    icon: 'cog',
    component: Main,
    secondMenuTitle: '财务管理',
    // redirect: '/index',
    // child: [
    //   {
    //     title: '门店交易数据',
    //     hasGroup: true,
    //     child: [
    //       {
    //         title: '小店收入明细',
    //         name: 'index',
    //         path: '/index',
    //         keepAlive: true,
    //         component: () =>
    //           import('@/view/admins/index.vue')
    //       },
    //       {
    //         title: '小店交易记录',
    //         name: 'index',
    //         path: '/index',
    //         keepAlive: true,
    //         component: () =>
    //           import('@/view/admins/index.vue')
    //       },
    //       // {
    //       //   title: 'SKU管理',
    //       //   name: 'category_skus',
    //       //   path: '/category_skus',
    //       //   keepAlive: true,
    //       //   component: () =>
    //       //   import('@/view/setting/category_sku.vue')
    //       // },
    //     ]
    //   },
    //   {
    //     title: '佣金订单数据',
    //     hasGroup: true,
    //     child: [
    //       {
    //         title: '自营订单结算',
    //         name: 'product_category',
    //         path: '/product_categorys',
    //         keepAlive: true,
    //         component: () =>
    //           import('@/view/setting/product_category.vue')
    //       },
    //       {
    //         title: '淘客佣金记录',
    //         name: 'retail_product_category',
    //         path: '/retail_product_categorys',
    //         keepAlive: true,
    //         component: () =>
    //           import('@/view/setting/retail_product_category.vue')
    //       },
    //       {
    //         title: '京东佣金记录',
    //         name: 'retail_product_category',
    //         path: '/retail_product_categorys',
    //         keepAlive: true,
    //         component: () =>
    //           import('@/view/setting/retail_product_category.vue')
    //       },
    //       {
    //         title: '多多佣金记录',
    //         name: 'retail_product_category',
    //         path: '/retail_product_categorys',
    //         keepAlive: true,
    //         component: () =>
    //           import('@/view/setting/retail_product_category.vue')
    //       },
    //     ]
    //   },
    //   {
    //     title: '对账管理',
    //     hasGroup: true,
    //     child: [
    //       {
    //         title: '提现申请管理',
    //         name: 'qa_cat',
    //         path: '/qa_cat',
    //         keepAlive: true,
    //         component: () =>
    //           import('@/view/setting/qa_cat.vue')
    //       },
    //       {
    //         title: '代扣税明细',
    //         name: 'qa',
    //         path: '/qa',
    //         keepAlive: true,
    //         component: () =>
    //           import('@/view/setting/qa.vue')
    //       },
    //       {
    //         title: '扣税申请管理',
    //         name: 'qr',
    //         path: '/qr',
    //         keepAlive: false,
    //         component: () =>
    //           import('@/view/setting/qr.vue'),
    //         hideInMenu: true,
    //       },
    //     ]
    //   }
    // ]
    redirect: '/finance/incomedetail',

    child: [
      //{title: "财务管理", hideInMenu: true, showName:"incomedetail", name: 'index', path: 'index', component: () => import('@/view/finance/index.vue')},

      {
        title: '门店交易数据',
        hasGroup: true,
        child: [
          {
            title: '小店收入明细',
            name: 'incomedetail',
            path: '/finance/incomedetail',
            component: () => import('@/view/finance/incomedetail.vue')
          },
          {
            title: '小店交易记录',
            name: 'transactionrecord',
            path: '/finance/transactionrecord',
            component: () =>
              import('@/view/finance/transactionrecord.vue')
          }
        ]
      },
      {
        title: '佣金订单数据',
        hasGroup: true,
        child: [
          {
            title: '自营订单结算',
            name: 'settleorderlist',
            path: 'settleorderlist',
            component: () => import('@/view/finance/settleorderlist.vue')
          },
          {
            title: '淘客佣金记录',
            name: 'onlineIncomes',
            path: '/finance/onlineIncomes',
            component: () => import('@/view/finance/onlineIncomes.vue')
          },

          {
            title: '京东佣金记录',
            name: 'jdonlineIncome',
            path: '/finance/jdonlineIncome',
            component: () => import('@/view/finance/jdonlineIncome.vue')
          },

          {
            title: '多多佣金记录',
            name: 'ddonlineIncome',
            path: '/finance/ddonlineIncome',
            component: () => import('@/view/finance/ddonlineIncome.vue')
          }
        ]
      },

      {
        title: '对账管理',
        hasGroup: true,
        child: [
          {
            title: '提现申请管理',
            name: 'discountrecord',
            path: '/finance/discountrecord',
            // keepAlive: true,
            component: () => import('@/view/finance/discountrecord.vue')
          },
          {
            title: '代扣税明细',
            name: 'withholdTax',
            path: '/finance/withholdTax',
            component: () => import('@/view/finance/withholdTax.vue')
          },
          {
            title: '扣税申请管理',
            name: 'refundTax',
            path: '/finance/refundTax',
            // keepAlive: true,
            component: () => import('@/view/finance/refundTax.vue')
          },
          //  {
          //    title: '平台对账管理',
          //    name: 'platformreconciliation',
          //    path: 'platformreconciliation',
          //    component: () =>
          //      import('@/view/finance/platformreconciliation.vue')
          //  }
        ]
      }
    ]
  },
  {
    title: '幕后小店',
    name: 'operate',
    path: '/operate',
    component: Main,
    icon: 'cog',
    secondMenuTitle: '幕后小店',
    redirect: '/operate/shopadministration', //title: "小店管理", name: 'index', hideInMenu: true, showName:"ruzhu",path: 'index', component: () => import('@/view/management/index.vue')

    child: [
      //{ title: "小店运营", hideInMenu: true, showName:"shopexamine", name: 'index', path: 'index', component: () => import('@/view/operate/index.vue') },

      {
        title: '商品管理',
        hasGroup: true,
        child: [
          //  {
          //    title: '小店商品审核',
          //    name: 'shopexamine',
          //    path: 'shopexamine',
          //    component: () => import('@/view/operate/shopexamine.vue')
          //  },
          {
            title: '小店商品管理',
            name: 'shopadministration',
            path: '/operate/shopadministration',
            keepAlive: true,
            component: () =>
              import('@/view/operate/shopadministration.vue')

          },
          {
            title: '小店商品添加',
            name: 'shopadministrationdetail',
            path: 'shopadministrationdetail',
            hideInMenu: true,
            component: () =>
              import('@/view/operate/shopadministrationdetail.vue')
          },
          {
            title: '小店商品添加',
            name: 'shopcreate',
            path: '/operate/shopcreate',
            hideInMenu: true,
            component: () =>
              import('@/view/operate/shopcreate.vue')
          },
          {
            title: '小店商品修改',
            name: 'shopedit',
            path: '/operate/shopedit',
            hideInMenu: true,
            component: () =>
              import('@/view/operate/shopedit.vue')
          }
        ]
      },
      {
        title: '小店活动管理',
        hasGroup: true,
        child: [
          {
            title: '小店活动列表',
            name: 'activelist',
            path: '/operate/activelist',
            keepAlive: true,
            component: () => import('@/view/operate/activelist.vue')
          },
          {
            title: '营销插件管理',
            name: 'marketingplugin',
            path: '/operate/marketingplugin',
            keepAlive: true,
            component: () => import('@/view/operate/marketingplugin.vue')
          }
        ]
      },
      {
        title: '优惠券管理',
        hasGroup: true,
        child: [
          {
            title: '满减券列表',
            name: 'avoucherslist',
            path: '/operate/voucherslist',
            keepAlive: true,
            component: () => import('@/view/operate/voucherslist.vue')
          },
          {
            title: '领取记录',
            name: 'vouchersgetterlist',
            path: '/operate/vouchersgetterlist',
            hideInMenu: true,
            keepAlive: true,
            component: () =>
              import('@/view/operate/vouchersgetterlist.vue')
          },
          {
            title: '现金券列表',
            name: 'cashlist',
            path: '/operate/cashlist',
            keepAlive: true,
            component: () => import('@/view/operate/cashlist.vue')
          },
          {
            title: '购买记录',
            name: 'cashbuylist',
            path: '/operate/cashbuylist',
            hideInMenu: true,
            component: () => import('@/view/operate/cashbuylist.vue')
          }
        ]
      },
      {
        title: '小店商城管理',
        hasGroup: true,
        child: [
          {
            title: '小店爆品管理',
            name: 'explosiveproducts',
            path: '/operate/explosiveproducts',
            // keepAlive: true,
            component: () =>
              import('@/view/operate/explosiveproducts.vue')
          },
          // {
          //   title: '会员专享管理',
          //   name: 'specialoffer',
          //   path: '/operate/specialoffer',
          //   component: () => import('@/view/operate/specialoffer.vue')
          // }
        ]
      },
      {
        title: '小店订单管理',
        hasGroup: true,
        child: [
          {
            title: '商城订单管理',
            name: 'shoporder',
            path: '/operate/shoporder',
            keepAlive: true,
            component: () => import('@/view/operate/shoporder.vue')
          },

          {
            title: '订单详情',
            name: 'shoporderdetail',
            path: '/operate/shoporderdetail',
            hideInMenu: true,
            component: () => import('@/view/operate/shoporderdetail.vue')
          },
          {
            title: '现金券订单管理',
            name: 'cashcouponorder',
            path: '/operate/cashcouponorder',
            keepAlive: true,
            component: () => import('@/view/operate/cashcouponorder.vue')
          },
          {
            title: '会员订单管理',
            name: 'vipOrder',
            path: '/operate/vipOrder',
            keepAlive: true,
            component: () => import('@/view/operate/orders/vipOrder.vue')
          },
          {
            title: '优惠买单记录',
            name: 'saleOrder',
            path: '/operate/saleOrder',
            keepAlive: true,
            component: () => import('@/view/operate/orders/saleOrder.vue')
          }
          //  {
          //    title: '会员卡充值订单管理',
          //    name: 'membercardOrderlist',
          //    path: 'membercardOrderlist',
          //    component: () =>
          //      import('@/view/operate/membercardOrderlist.vue')
          //  }
        ]
      },
      // {
      //   title: '拼团',
      //   hasGroup: true,
      //   child: [
      //     {
      //       title: '拼团管理',
      //       name: 'cashbuylist',
      //       path: '/operate/cashbuylist',
      //       // hideInMenu: true,
      //       component: () => import('@/view/operate/cashbuylist.vue')
      //     },


      //   ]
      // },
      {
        title: '线下订单',
        hasGroup: true,
        child: [

          {
            title: '线下订单管理',
            name: 'cashbuylists',
            path: '/operate/cashbuylists',
            // hideInMenu: true,
            component: () => import('@/view/operate/orders/saleOrder.vue')
          },


        ]
      },
    ]
  },

]
